From 49c5bb6cdcf710fbacf4d833b68817c611c96d36 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Fri, 13 Oct 2006 05:28:28 +0000 Subject: [PATCH] * API: fixed caching header per jeluf's fix in query.php --- includes/api/ApiFormatBase.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/api/ApiFormatBase.php b/includes/api/ApiFormatBase.php index 92c9213ad8..c886a15acb 100644 --- a/includes/api/ApiFormatBase.php +++ b/includes/api/ApiFormatBase.php @@ -76,7 +76,8 @@ abstract class ApiFormatBase extends ApiBase { $isHtml = $this->getIsHtml(); $mime = $isHtml ? 'text/html' : $this->getMimeType(); header("Content-Type: $mime; charset=utf-8;"); - + header("Cache-Control: private, s-maxage=0, max-age=0"); + if ($isHtml) { ?> -- 2.20.1